package pl.acmelabs.ibatis;

import java.sql.Date;

public class Emp {
    private String ename, job;
    private int empno, mgr, deptno;
    private double sal, comm;
    private Date hiredate;

    public Emp() {}

    public Emp(int empno, String ename, String job, int mgr, Date hiredate, double sal, double comm, int deptno) {
        this.empno = empno;
        this.ename = ename;
        this.job = job;
        this.mgr = mgr;
        this.hiredate = hiredate;
        this.sal = sal;
        this.comm = comm;
        this.deptno = deptno;
    }
 
    public int getEmpno() {
        return this.empno;
    }

    public String getEname() {
        return this.ename;
    }

    public String getJob() {
        return this.job;
    }

    public int getMgr() {
        return this.mgr;
    }

    public Date getHiredate() {
        return this.hiredate;
    }

    public double getSal() {
        return this.sal;
    }

    public double getComm() {
        return this.comm;
    }

    public int getDeptno() {
        return this.deptno;
    }
    
    public void setEmpno(int empno) {
        this.empno = empno;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public void setMgr(int mgr) {
        this.mgr = mgr;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }

    public void setComm(double comm) {
        this.comm = comm;
    }

    public void setDeptno(int deptno) {
        this.deptno = deptno;
    }

    public void print() {
        System.out.println("<PRINT> EMPNO:"+getEmpno()+", ENAME:"+getEname()+", JOB:"+getJob()+", MGR:"+getMgr()+", HIREDATE:"+getHiredate()+", SAL:"+getSal()+", COMM:"+getComm()+", DEPTNO:"+getDeptno());
    }
}
